home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
C-D
/
DeveloperStax.cpt
/
Developer Stack 1.2r
/
card_12654.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
1KB
|
59 lines
-- card: 12654 from stack: in.2r
-- bmap block id: 0
-- flags: 4000
-- background id: 13187
-- name: ArrowKeys
----- HyperTalk script -----
on arrowKey direction
if direction is "left" then put "That was left"
if direction is "right" then put "That was right"
if direction is "up" then put "That was up"
if direction is "down" then put "That was down"
end arrowkey
on closecard
hide message window
end closecard
-- part contents for background part 4
----- text -----
3
-- part contents for background part 3
----- text -----
--
-- •••From Steve Drazga 12/87•••
--
-- To prevent the user from using a specific arrowkey replace "left"
-- in the script with whatever key you want to disable.
-- Click on an arrowkey to try this.
--
on arrowKey direction
if direction is not "left" then pass arrowKey
end arrowkey
--
--To disable all the arrowkeys use:
--
on arrowKey direction
end arrowkey
--
-- To do something special when an arrowkey is selected, use:
--
on arrowkey direction
if direction is up then
--special instructions for up arrowkey go here.
--there can be more than one.
else
pass arrowkey -- remember if you don't pass the arrowkey, they won't do anything!
end if
end arrowkey
-- part contents for background part 2
----- text -----
ArrowKeys